const Path = require("path");
const WebpackConfig = require("./webpack.common.js");
const { merge: WebpackMerge } = require("webpack-merge");
const Webpack = require("webpack");

const { resolve } = Path;

module.exports = WebpackMerge(WebpackConfig, {
  mode: "development",
  entry: {
    app: ["webpack-hot-middleware/client", resolve(__dirname, "./src/main.js")],
  },
  plugins: [new Webpack.HotModuleReplacementPlugin()],
});
